package com.jy.adscm.operation.cg.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.cg.bean.JqPlan;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.operation.cg.bean.QueryCondition;
import com.jy.adscm.operation.cg.bean.QueryJqPlan;
import com.jy.adscm.security.utils.Token;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-07-26
 */
public interface JqPlanService extends IService<JqPlan> {

    Page<JqPlan> selectJqPlan(Page<JqPlan> page, QueryJqPlan queryJqPlan);

    boolean  approve(Integer id, Token token) throws AdscmSystemException;

    boolean insertJqPlan(QueryJqPlan queryJqPlan,Token token)throws AdscmSystemException;

    boolean insertJqPlanByPlan(QueryCondition queryCondition, Token token) throws AdscmSystemException;

    boolean approves(List<Integer> ids, Token token)throws AdscmSystemException;
}
